//
//  FillCicleLayerConfig.m
//  MyFunctionDemo
//
//  Created by Ting Han on 2017/9/19.
//  Copyright © 2017年 Ting Han. All rights reserved.
//

#import "FillCicleLayerConfig.h"

@implementation FillCicleLayerConfig

- (void)configCAShapeLayer:(CAShapeLayer *)shapeLayer{
    self.lineWidth = .0f;
    self.strokeColor = [UIColor clearColor];
    [super configCAShapeLayer:shapeLayer];
    shapeLayer.bounds = CGRectMake(0, 0, (self.lineWidth + self.radius)*2, (self.lineWidth + self.radius)*2);
    shapeLayer.position = self.cicleCenter;
    UIBezierPath *bezierPath = [UIBezierPath bezierPathWithArcCenter:CGPointMake(self.lineWidth + self.radius, self.lineWidth + self.radius) radius:(self.radius+self.lineWidth/2.0) startAngle:self.startAngle endAngle:self.endAngle clockwise:self.clockWise];
    shapeLayer.path = bezierPath.CGPath;
}

@end
